package cn.miw.android.bdmp3.service;

import android.os.AsyncTask;
import android.os.Handler;

public class AnsyncDownTask extends AsyncTask<String, String, Void> {
	private String url;
	private String fileName;
	private Handler handler;
	private String name;

	public AnsyncDownTask(String url,String name, String fileName, Handler handler) {
		super();
		this.url = url;
		this.fileName = fileName;
		this.handler = handler;
		this.name = name;
	}

	@Override
	protected void onPostExecute(Void result) {
		super.onPostExecute(result);
	}

	@Override
	protected Void doInBackground(String... params) {
		Util.downIt(url,name, fileName, handler);
		return null;
	}

}